package com.yuxi.Request;

import com.sun.javafx.binding.StringFormatter;

/**
 * 信息查询条件类
 *@version 0.1 2016-07-20 09:55:39
 *@author wyd 
 * */
public class InformationQuery {
	private long startTimestamp=0;
	private long endTimestamp=System.currentTimeMillis();
	private String informationType="%";//
	private String informationLv="%";//
	private String informationSort="%";//
	private String informationSource="%";//
	private String curFLow="%";
	private String key="%";
	private String salfPort="%";
	private Integer taskType=1;
	private String intputNumber="0";
	private String intputName="%";
	private long startCommitTime=0;
	private long endCommitTime=System.currentTimeMillis();
	private long startInputTime=0;
	private long endInputTime=System.currentTimeMillis();
	private String finisPerson="%";
	private String finisPersonNum="0";
	private String qualityId="%";
	private String completeId="%";
	private long startFinishTime=0;
	private long endFinishTime=Long.valueOf("3502800000000");
	private String structure="%";
	private String informationJudge="%";
	private String isFinish="%";
	private long firstStartTime=0;
	private long firstEndTime=0;
	private long reCheckStartTime=0;
	private long reCheckEndTime=0;
	private long checkStartTime=0;
	private long checkEndTime=0;
	private long researchStartTime=0;
	private long researchEndTime=0;
	private String userId="%";
	
	
	
	
	
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		if(userId!=null&&!userId.equals("null")){
			this.userId = userId;
		}	
	}
	public long getFirstStartTime() {
		return firstStartTime;
	}
	public void setFirstStartTime(long firstStartTime) {
		this.firstStartTime = firstStartTime;
	}
	public long getFirstEndTime() {
		return firstEndTime;
	}
	public void setFirstEndTime(long firstEndTime) {
		this.firstEndTime = firstEndTime+(24*60*60*1000-1000);
	}
	public long getReCheckStartTime() {
		return reCheckStartTime;
	}
	public void setReCheckStartTime(long reCheckStartTime) {
		this.reCheckStartTime = reCheckStartTime;
	}
	
	public long getReCheckEndTime() {
		return reCheckEndTime;
	}
	public void setReCheckEndTime(long reCheckEndTime) {
		this.reCheckEndTime = reCheckEndTime+(24*60*60*1000-1000);
	}
	public long getCheckStartTime() {
		return checkStartTime;
	}
	public void setCheckStartTime(long checkStartTime) {
		this.checkStartTime = checkStartTime;
	}
	public long getCheckEndTime() {
		return checkEndTime;
	}
	public void setCheckEndTime(long checkEndTime) {
		this.checkEndTime = checkEndTime+(24*60*60*1000-1000);
	}
	public long getResearchStartTime() {
		return researchStartTime;
	}
	public void setResearchStartTime(long researchStartTime) {
		this.researchStartTime = researchStartTime;
	}
	public long getResearchEndTime() {
		return researchEndTime;
	}
	public void setResearchEndTime(long researchEndTime) {
		this.researchEndTime = researchEndTime+(24*60*60*1000-1000);
	}
	public String getIsFinish() {
		return isFinish;
	}
	public void setIsFinish(String isFinish) {
		if(isFinish!=null&&!isFinish.equals("null")){
			this.isFinish = isFinish;
		}	
		
	}
	public String getInformationJudge() {
		return informationJudge;
	}
	public void setInformationJudge(String informationJudge) {
		if(informationJudge!=null&&!informationJudge.equals("null")){
			this.informationJudge = informationJudge;
		}	
		
	}
	public String getStructure() {
		return structure;
	}
	public void setStructure(String structure) {
		if(structure!=null&&!structure.equals("null")){
			this.structure = structure;
		}	
		
	}
	public Integer getTaskType() {
		return taskType;
	}
	public void setTaskType(Integer taskType) {
		this.taskType = taskType;
	}
	public String getSalfPort() {
		return salfPort;
	}
	public void setSalfPort(String salfPort) {
		if(salfPort.substring(salfPort.length()-1,salfPort.length()).equals(",")){
			salfPort=salfPort.substring(0, salfPort.length()-1);
		}
		if(salfPort!=null&&!salfPort.equals("null")){
			this.salfPort = salfPort;
		}		
	}
	public long getStartTimestamp() {
		return startTimestamp;
	}
	public void setStartTimestamp(long startTimestamp) {
		this.startTimestamp = startTimestamp;
	}
	public long getEndTimestamp() {
		return endTimestamp;
	}
	public void setEndTimestamp(long endTimestamp) {
		endTimestamp=endTimestamp+(24*60*60*1000-1000);
		this.endTimestamp = endTimestamp;
	}
	public String getInformationType() {
		return informationType;
	}
	public void setInformationType(String informationType) {		
		if(informationType!=null&&!informationType.equals("null")){
			this.informationType = informationType;
		}
	}
	public String getInformationLv() {
		return informationLv;
	}
	public void setInformationLv(String informationLv) {
		if(informationLv!=null&&!informationLv.equals("null")){
			this.informationLv = informationLv;
		}
		
	}
	public String getInformationSort() {
		return informationSort;
	}
	public void setInformationSort(String informationSort) {
		if(informationSort!=null&&!informationSort.equals("null")){
			this.informationSort = informationSort;
		}
		
	}
	
	public String getInformationSource() {
		return informationSource;
	}
	public void setInformationSource(String informationSource) {
		if(informationSource!=null&&!informationSource.equals("null")){
			this.informationSource = informationSource;
		}
	}
	public String getCurFLow() {
		return curFLow;
	}
	public void setCurFLow(String curFLow) {
		if(curFLow!=null&&!curFLow.equals("null")){
			this.curFLow = curFLow;
		}
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		if(key!=null&&!key.equals("null")){
			System.out.println(key);
			this.key = key;
		}
	}
	
	public String getIntputNumber() {
		return intputNumber;
	}
	public void setIntputNumber(String intputNumber) {
		
		this.intputNumber = intputNumber;
	}
	public String getIntputName() {
		return intputName;
	}
	public void setIntputName(String intputName) {
		if (intputName!=null&&!intputName.equals("null")&&!intputName.equals("")) {
			this.intputName = intputName;
		}
		
	}
	public long getStartCommitTime() {
		return startCommitTime;
	}
	public void setStartCommitTime(long startCommitTime) {
		this.startCommitTime = startCommitTime;
	}
	public long getEndCommitTime() {
		return endCommitTime;
	}
	public void setEndCommitTime(long endCommitTime) {
		this.endCommitTime = endCommitTime;
	}
	public long getStartInputTime() {
		return startInputTime;
	}
	public void setStartInputTime(long startInputTime) {
		this.startInputTime = startInputTime;
	}
	public long getEndInputTime() {
		return endInputTime;
	}
	public void setEndInputTime(long endInputTime) {
		endInputTime=endInputTime+(24*60*60*1000-1000);
		this.endInputTime = endInputTime;
	}
	public String getFinisPerson() {
		return finisPerson;
	}
	public void setFinisPerson(String finisPerson) {
		if (finisPerson!=null&&!finisPerson.equals("null")&&!finisPerson.equals("")) {
			this.finisPerson = finisPerson;
		}
		
	}
	public String getFinisPersonNum() {
		return finisPersonNum;
	}
	public void setFinisPersonNum(String finisPersonNum) {
		this.finisPersonNum = finisPersonNum;
	}
	public String getQualityId() {
		return qualityId;
	}
	public void setQualityId(String qualityId) {
		if (qualityId!=null&&!qualityId.equals("null")) {
			this.qualityId = qualityId;
		}
		
	}
	public String getCompleteId() {
		
		return completeId;
	}
	public void setCompleteId(String completeId) {
		if (completeId!=null&&!completeId.equals("null")) {
			this.completeId = completeId;
		}
	}
	public long getStartFinishTime() {
		return startFinishTime;
	}
	public void setStartFinishTime(long startFinishTime) {
		this.startFinishTime = startFinishTime;
	}
	public long getEndFinishTime() {
		return endFinishTime;
	}
	public void setEndFinishTime(long endFinishTime) {
		endFinishTime=endFinishTime+(24*60*60*1000-1000);
		this.endFinishTime = endFinishTime;
	}
	
	@Override
	public String toString() {
		return "InformationQuery [startTimestamp=" + startTimestamp + ", endTimestamp=" + endTimestamp
				+ ", informationType=" + informationType + ", informationLv=" + informationLv + ", informationSort="
				+ informationSort + ", informationSource=" + informationSource + ", curFLow=" + curFLow + ", key=" + key
				+ ", salfPort=" + salfPort + ", taskType=" + taskType + ", intputNumber=" + intputNumber
				+ ", intputName=" + intputName + ", startCommitTime=" + startCommitTime + ", endCommitTime="
				+ endCommitTime + ", startInputTime=" + startInputTime + ", endInputTime=" + endInputTime
				+ ", finisPerson=" + finisPerson + ", finisPersonNum=" + finisPersonNum + ", qualityId=" + qualityId
				+ ", completeId=" + completeId + ", startFinishTime=" + startFinishTime + ", endFinishTime="
				+ endFinishTime + ", structure=" + structure + "]";
	}
	public InformationQuery(long startTimestamp, long endTimestamp, String informationType, String informationLv,
			String informationSource,String informationSort, String curFLow, String key) {
		super();
		this.startTimestamp = startTimestamp;
		endTimestamp=endTimestamp+(24*60*60*1000-1000);
		this.endTimestamp = endTimestamp;
		
		
		
		this.curFLow = curFLow;
		if(informationSource!=null&&!informationSource.equals("null")){
			this.informationSource = informationSource;
		}
		
		if(informationSort!=null&&!informationSort.equals("null")){
			this.informationSort = informationSort;
		}
		
		if(informationType!=null&&!informationType.equals("null")){
			this.informationType = informationType;
		}
		
		if(informationLv!=null&&!informationLv.equals("null")){
			this.informationLv = informationLv;
		}
		if(key!=null&&!key.equals("null")){
			System.out.println(key);
			this.key = key;
		}
	}
	public InformationQuery() {
		super();
	}
	
}
